package com.ygqh.baby.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.KsdOrderDetail;
import com.ygqh.baby.po.KsdOrderDetailExample;

public interface KsdOrderDetailMapper {
	int countByExample(KsdOrderDetailExample example);

	int deleteByExample(KsdOrderDetailExample example);

	int deleteByPrimaryKey(Long id);

	int insert(KsdOrderDetail record);

	int insertSelective(KsdOrderDetail record);

	List<KsdOrderDetail> selectByExample(KsdOrderDetailExample example);

	KsdOrderDetail selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") KsdOrderDetail record, @Param("example") KsdOrderDetailExample example);

	int updateByExample(@Param("record") KsdOrderDetail record, @Param("example") KsdOrderDetailExample example);

	int updateByPrimaryKeySelective(KsdOrderDetail record);

	int updateByPrimaryKey(KsdOrderDetail record);

	int countSuper(@Param("q") String q);

	List<KsdOrderDetail> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	int saveDetailBatch(@Param("details") List<KsdOrderDetail> details);

	List<KsdOrderDetail> selectByOrderId(@Param("orderId") Long orderId);

}
